package cn.edu.hubu.hubuhotel.mapper;

import cn.edu.hubu.hubuhotel.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public User selectByAccount(String account);

    public int insertUser(User user);

    public User selectByAccountAndPwd(@Param("account") String account,@Param("pwd") String pwd);


    public User selectUser(String phone);  //用户查询

    public List<User> selectUserByType(int usertype);  //根据类别查询

    public int addUser(User user);      //用户添加

    public int changeUser(User user);       //用户信息更改

    public int deleteUser(int id);       //用户删除

    public int updateUserByUserId(User user);

    public int updateUserByAccount(User user);
}
